-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add relation macros and add relation renameable/replaceable config #603
Conversation
{%- set contract_config = config.get('contract') -%} | ||
{%- if contract_config.enforced -%} | ||
|
||
create table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These (this line and line 36) should be create or replace
instead of just create
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think redshift supports or replace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If Redshift doesn't support create or replace
for tables, then we need to remove RelationType.Table
from replaceable_relations
and then delete this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point! duh
tests/functional/adapter/materialized_view_tests/test_materialized_views.py
Outdated
Show resolved
Hide resolved
…bt-labs#603) * add relation macros and add relation renameable/replaceable config * formatting cleanup * PR fixes * make tables irreplaceable
resolves #
docs dbt-labs/docs.getdbt.com/#
Problem
Solution
Checklist